package home_4_8.chaoshi;

public class Fengzhuang_market {
    public static void main(String[] args) {
//        穿件商品对象

        Product p1=new Product();
        p1.setName("茶叶蛋");
        Product p2=new Product();
        p1.setName("关东煮");
//        创建超市对象
        Market market=new Market();
        market.setName("十足");
        Product[] p={p1,p2};
        market.setProducts(p);



//        创建没有进货的商品对象
        Product p3=new Product();
        p3.setName("作业");
//        创建顾客对象，调用方法去超市买东西
        Custom guke=new Custom();
        guke.setName("小明");
        guke.shop(market,p1);
        guke.shop(market,p3);




    }

}
